feat: add Helm chart unit tests and CI validation (#8)#19
Merged
mikkeldamsgaard merged 2 commits intomainfrom Feb 24, 2026
Merged
feat: add Helm chart unit tests and CI validation (#8)#19mikkeldamsgaard merged 2 commits intomainfrom
mikkeldamsgaard merged 2 commits intomainfrom
Conversation
…t tests covering deployment rendering, securityContext enforcement, disabled sampleDeployment producing no resources, multiple initContainers, extraVolumes/extraVolumeMounts, image configuration, workdir mount, and labels. Add helm-unittest plugin install and run step to CI helm-lint job. Closes #8
Contributor
There was a problem hiding this comment.
Pull request overview
Adds automated Helm chart unit testing and CI enforcement so the charts/initium deployment template behavior is validated on every PR.
Changes:
- Add
helm-unittesttest suite fortemplates/deployment.yamlcovering enable/disable behavior, initContainers rendering, securityContext, volumes/mounts, image config, workdir mounts, and labels. - Update GitHub Actions CI to install
helm-unittestand runhelm unittest charts/initium. - Document the new testing/CI capability in the changelog.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
charts/initium/tests/deployment_test.yaml |
Adds helm-unittest assertions to validate deployment template rendering across key values combinations. |
.github/workflows/ci.yml |
Installs helm-unittest plugin and runs Helm unit tests in the existing Helm lint job. |
CHANGELOG.md |
Notes the introduction of Helm unit tests and the CI unittest step. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…nd added --verion
7f1129a to
74c22c5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add automated Helm chart tests using the helm-unittest plugin to validate template rendering and values.
Changes
New:
charts/initium/tests/deployment_test.yaml8 tests covering:
sampleDeployment.enabled=falseUpdated:
.github/workflows/ci.ymlhelm plugin install helm-unitteststephelm unittest charts/initiumstep after existing lint and template validationUpdated:
CHANGELOG.mdHow to verify
All 8 tests pass.
Closes #8